<div class="row-fluid" style="margin-top:20px;">

	<div class='row-fluid'>
		<h1 class='span8'><?php echo stripslashes($Pub['titulo']); ?></h1>
		<div class='detalle_blog span4' style='text-align:right;clear:none;margin-top:20px;'>
			<?php echo fecha_larga($Pub['fecha']);?>&nbsp;|&nbsp;
				<a href="#ancla_comentarios" title='Ver Comentarios'><?php echo $cuantos_comentarios;?> comentarios</a>&nbsp;|&nbsp;
				<a href="<?php echo $Pub['urlamigable'];?>" title="permalink a: <?php echo $Pub['titulo'];?>">permalink</a>
				<br>
				<!-- ........................................... TAGS ..................................... -->
				<?php if(!empty($Pub['tags1']) ){ ?>
					<?php $xtags = explode(',',$Pub['tags1']);?>
						<div class='detalle_blog' style='float:left;width:100%;background: #F7F7F7; margin:5px auto;'>
							<b>Tags:</b>
							<?php foreach($xtags as $tags) { ?>
								<a href='<?php echo URL;?>/blog/tags/<?php echo urlencode(trim($tags));?>' title='<?php echo $tags;?>' ><?php echo trim($tags);?></a>&nbsp,
							<?php } //end foreach tags ?>
						</div>
				<?php } ?>
		</div>
		<div class='clearfix'></div>
	</div>

	<div id='myCarousel' class='carousel slide '>
		<ol class='carousel-indicators'>
			<?php foreach($Pub['galeria_fotos'] as $clave=>$s) { ?>
				<?php $activo = iif($clave==0,'active','');?>
				<li data-target='#myCarousel' data-slide-to='<?php echo $clave;?>' class='<?php echo $activo;?>'></li>
			<?php }   ?>
		</ol>
		
			<!-- Carousel items -->
		<div class='carousel-inner' >
			<?php foreach($Pub['galeria_fotos'] as $clave=>$s) { ?>
				<?php $activo = iif($clave==0,'active','');?>
				<div class='item $activo'><a href='<?php echo $s['href'];?>' ><img src='<?php echo $s['archivo'];?>' alt='<?php echo $s['titulo'];?>'></a>
				<?php if(!empty($s['titulo'])){?>
					<div class='carousel-caption'><p><?php echo $s['titulo'];?></p></div>
				<?php } ?>
				</div>
			<?php }   ?>
		</div>
		<!-- Carousel nav -->
		<a class='carousel-control left' href='#myCarousel' data-slide='prev'>&lsaquo;</a>
		<a class='carousel-control right' href='#myCarousel' data-slide='next'>&rsaquo;</a>
		<div id='cargando' style="z-index:0;margin-left:200px;height:50px;display:block;"><img src='<?php echo URL;?>/img/loading.gif'></div>		
	</div>
	<script>
		$('.carousel').carousel();
		$('#cargando').hide(8000);
	</script>
	<p ><?php echo nl2br($Pub['copete']);?></p>	
	<p><?php echo strip_tags($Pub['contenido'], '<b><p><a><img><i><strong><h1><h2><ul><li><br><object><param><embed>');?></p>
	<center><a href='<?php echo URL;?>/fotos/' class='btn btn-warning'>Regresar a la Galería</a></center>
	
</div> <!-- end div row-fluid -->
